package com.agile.major.service;

import com.agile.major.domain.ProductionAndLearningCooperation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing ProductionAndLearningCooperation.
 */
public interface ProductionAndLearningCooperationService {

    /**
     * Save a productionAndLearningCooperation.
     *
     * @param productionAndLearningCooperation the entity to save
     * @return the persisted entity
     */
    ProductionAndLearningCooperation save(ProductionAndLearningCooperation productionAndLearningCooperation);

    /**
     *  Get all the productionAndLearningCooperations.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<ProductionAndLearningCooperation> findAll(Pageable pageable);

    /**
     *  Get the "id" productionAndLearningCooperation.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    ProductionAndLearningCooperation findOne(Long id);

    /**
     *  Delete the "id" productionAndLearningCooperation.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);
    List<ProductionAndLearningCooperation> getProductionCooperationByMajorAndYear(Long id, String year);
}
